<?php
if (empty ($data_pdf)) {
    echo "Tidak ada data";
}
else {
?>
<style>
	h4 {
		font-size:20px;
		font-weight:bold;
		margin:0px;
		margin-bottom:5px;
	}
	page{
		border:1px solid black;
	}
	p{
		margin:5px;
	}
	.header{
		width:95%;
		border-bottom:2px double black;
		padding:10px 0;
	}
	.header img{
		width:100px;
		height:auto;
	}
</style>
<page backtop="40mm" backbottom="10mm" backleft="1mm" backright="3mm">
    <page_header>
        <table class="header" cellspacing=0 cellpadding=0>
            <tr>
                <td style="text-align: left;   width: 10%"><img src='<?php base_url()?>asset/images/logo.jpg' /></td>
				<td style="text-align: center; width: 80%">
					<h4><?php echo $namaUniv;?></h4>
					<p><?php echo $alamatUniv;?></p>
					<p><?php echo $kotaUniv;?></p>
				</td>
                <td style="text-align: right;   width: 10%"><?php //echo date('d/m/Y'); ?></td>
            </tr>
        </table>
    </page_header>
    <page_footer>
        <table style="width: 100%; border: solid 1px black;">
            <tr>
                <td style="text-align: left;    width: 50%">Universitas Ottow Geisler Papua </td>
                <td style="text-align: right;    width: 50%">page [[page_cu]]/[[page_nb]]</td>
            </tr>
        </table>
    </page_footer>
	<!--<table style="width:100%;">-->
<p align="center">DAFTAR MAHASISWA</p>
	<!--<p align="center"><?php  echo $data_pdf[0]->nama_tahunajaran;?></p>-->
	<table>
		<tr>
			<td  align="left">Fakultas</td>
			<td  align="left"> : <?php echo $data_pdf[0]->nama_fakultas;?></td>
		</tr>    
		<tr>
			<td align="left">Program Studi</td>
			<td align="left"> : <?php echo $data_pdf[0]->nama_prodi;?></td>
		</tr>
		<tr>
			<td align="left">Tahun Angkatan</td>
			<td align="left"> : <?php echo $data_pdf[0]->thn_angkatan;?></td>
		</tr>
	</table>
	<br/> 
	<table width= "100%" border="0.1">
	  <tr>
		<td width="30">No</td>
		<td width="125">NIM</td>
		<td width="250">Nama Mahasiswa</td>
		<td width="225">Alamat</td>
		<td width="125">No Telp</td>
		<td width="125">Status</td>
		<!--td width="65">Kredit</td-->
	  </tr>
	  <?php 
		$no = 1;
		foreach ($data_pdf as $data){
	  ?>
	  <tr>
		<td><?php echo $no; ?></td>
		<td><?php echo $data->nim;?></td>
		<td><?php echo $data->nama;?></td>
		<td><?php echo $data->alamat;?></td>
		<td><?php echo $data->no_telp;?></td>
		<td><?php echo $data->status;?></td>
	  </tr>
	  <?php 
		$no++;
		//foreach
	  } ?>
	</table>
</page>
<?php } ?>